
clear
set more off

use "$statadir/refund_by_size", clear
 
niceloglabels num_emp if num_emp > 0, style(13) local(labname)

local tstr0 "ERTC: 2020Q2-2020Q4"
local tstr1 "ERTC: 2021Q1-2021Q3"


twoway scatter y num_emp if num_emp > 0 & post == 0, mcolor(gs0) || ///
        scatter y num_emp if num_emp > 0 & post == 1, mcolor(gs8) msymbol(circle_hollow) ///
        xscale(log) xlabel(`labname') ///
			xtitle("Number of employees (log scale)") ///
			xline(500, lpattern("--") lcolor(gray)) ///
			ytitle("Share paid as refund or amended") ///
			scheme(s1color) ///
            legend(order(1 "2020Q2-2020Q4" 2 "2021Q1-2021Q4") cols(1))
 
graph export "$outdir/figures/refund_by_size.eps", replace

cap log close

